package com.ase.mobile.utils;

import org.springframework.beans.BeanUtils;

import java.util.List;
import java.util.stream.Collectors;

/**
 * @author astronautG24
 * @create 2021/10/20 - 21:31
 **/
public class CopyUtil {
    public static List<Object> DeepinCopy(List<Object> list) {
        return list.stream().map(res -> {
            Object entity = new Object();
            BeanUtils.copyProperties(res, entity);
            return entity;
        }).collect(Collectors.toList());
    }
}
